pp108 : Using Assign Action

Using Assign Action

This topic describes the procedure to assign value to an attribute of an object while defining a rule.

This task applies while defining the action of a rule or a decision table.


Important: For using Assign action in a decision table, perform step 3 and step 4.

 

  1. In the Rule Definition pane, right-click then > Actions > Assign. An Action - Assign text box is displayed.
  2. Type the name of the action in the Action Name text box. For more information on naming the action, refer to Guidelines for Naming Rule Actions.
  3. Drag the required attributes from the Business Object pane to the Business Object Attribute column and type the values to be assigned to these attributes in the Value column. The following table describes the types of values that can be assigned in the Value column:

    Value

    Description

    Literal

    You can hard-code a value to be assigned; it must be enclosed either between 'single quotes' or "double quotes". For example, a string 'To be Processed'.

    Parameter

    You can assign a parameter so that the value is assigned during runtime; for example, prod:Product/prod:Name. The value of the Name element will be assigned at runtime.


    Note: While defining the assignment action in a decision table, you can drag the root node of the business object on to the Properties pane of the decision table. This will enable you to assign values to multiple attributes.

  4. Click Add. Repeat the task to add more assignment actions to a rule. The type of action(s) along with the name is displayed after then in the Rule Definition pane.